Skip to contentSkip to conversation

HDMI Audio with RX Vega not working on drm-next-4.15-dc (device listed as unconnected)

Bug 103404 [email protected] 1 participant 14 messages Oct 22, 2017 – Nov 1, 2017

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=103404

Bug ID: 103404
Summary: HDMI Audio with RX Vega not working on
drm-next-4.15-dc (device listed as unconnected)
Product: DRI
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: major
Priority: medium
Component: DRM/AMDgpu
Assignee: [email protected]
Reporter: [email protected]

Created attachment 134990
--> https://bugs.freedesktop.org/attachment.cgi?id=134990&action=edit
dmesg output filtered to show drm messages

When using a DC-patched kernel (the drm-next-4.15-dc branch to be specific), HDMI audio output on RX Vega does not work, as the device(s) are simply listed as unconnected.

Audio over DisplayPort works, but the second device (A 5.1 Surround Sound AV Receiver) does not register as an audio-output.
It doesn't matter which port is used; All 4 physical monitor outputs (3 DisplayPorts, 1 HDMI), when connected to another device, be it the AV receiver or the monitor, fails to register any audio outputs. Only DisplayPort->DisplayPort works.

The attached dmesg log file shows both devices being connected and detected as audio outputs by drm, including the number of configurations available on each.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=103404

--- Comment #1 from [email protected] ---
Created attachment 134991
--> https://bugs.freedesktop.org/attachment.cgi?id=134991&action=edit
Parsed edid output for the receiver.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103404

--- Comment #2 from [email protected] ---
Created attachment 134992
--> https://bugs.freedesktop.org/attachment.cgi?id=134992&action=edit
Parsed edid output for the monitor, connected via DP.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103404

--- Comment #3 from [email protected] ---
Created attachment 134993
--> https://bugs.freedesktop.org/attachment.cgi?id=134993&action=edit
cat /proc/asound/card0/eld#0.*

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103404

--- Comment #5 from Harry Wentland <[email protected]> --- It looks like we missed this when bringing up Vega. We got a patch in the works. It should land sometime this week.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103404

--- Comment #6 from [email protected] ---
Thank you for your quick response, I am glad to hear that a patch will be there soon

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103404

Leo <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #7 from Leo <[email protected]> ---
Created attachment 135191
--> https://bugs.freedesktop.org/attachment.cgi?id=135191&action=edit
[PATCH 1/2] drm/amd: Add DCE12 resource strap registers

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103404

--- Comment #8 from Leo <[email protected]> ---
Created attachment 135192
--> https://bugs.freedesktop.org/attachment.cgi?id=135192&action=edit
[PATCH 2/2] drm/amd/display: Read resource_straps from registers for DCE12

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103404

--- Comment #9 from Leo <[email protected]> ---
@randomsalad, I've attached the patches. Please let me know if they resolve the issue.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103404

--- Comment #10 from [email protected] ---
Created attachment 135197
--> https://bugs.freedesktop.org/attachment.cgi?id=135197&action=edit
Compilation error for the patch

The proposed patch doesn't compile when applied to an otherwise clean version of drm-next-4.15-dc (commit id 9b38bd1b8f5c874c3d1f330e0dcf4e7d84137477 at time of writing). Does it rely on other changes present on the WIP branch? I've attached the compilation errors.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103404

--- Comment #11 from [email protected] ---
Whoops, seems I blundered and didn't see there was not one, but two different patch files.

The compilation succeeds now, will proceed to testing it.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103404

--- Comment #12 from [email protected] ---
I can confirm the patch works, and was the only thing missing to get HDMI audio working on my Vega card. I can confirm it works for atleast 5.1 and 2.0 channel audio as those are the only options available to me with my Receiver, though this was just what I needed.

Thanks!

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103404

Leo Li <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #13 from Leo Li <[email protected]> --- Thanks for the confirmation, marking this as resolved.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel